package com.tabuleiro.web.components;

import org.apache.tapestry5.BindingConstants;
import org.apache.tapestry5.annotations.Parameter;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.tabuleiro.web.services.Authenticator;

public class Estilo {

	@Inject
	private Authenticator authenticator;
	
	@Property
	private String usuario;
	
	@Property
	private String senha;
	
    @Property
    @Parameter(required = true, defaultPrefix = BindingConstants.LITERAL)
    private String title;
    
    @Parameter(required = false, defaultPrefix = BindingConstants.LITERAL, value = "true")
    private boolean exibirLogin;
    
    public boolean isLogado() {
    	return authenticator.isLogado();
    }
    
    public boolean getExibirLogin() {
    	return false;
    }
    
}
